<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script src="avalon.js">
        </script>
        <script>
           
            var model = avalon.define("xxx", function(vm) {
                  vm.arr = ["a", "b", "c", "d", "e", "f", "g", "h"]

            })
         
        </script>
    </head>
    <body>
        <div ms-controller="xxx">
            <h3>ms-each实现数组循环</h3>
            <div ms-each="arr">
                {{$index}} <button ms-click="$remove">{{el}} 点我删除</button>
            </div>
            <h3>ms-repeat实现数组循环</h3>
            <table border="1" width="800px" style="background:blueviolet">
                <tr>
                    <td ms-repeat="arr">
                        {{el}}  {{$first}} {{$last}}
                    </td>
                </tr>
            </table>
        </div>
    </body>
</html>